import request from "@/utils/request";
// 查询话费领取 信息（excel导入）列表
export function listReceive(query) {
  return request({
    url: "/system/receive/list",
    method: "get",
    params: query,
  });
}

//话费领取（h5)
export function receiveFnc(data) {
  return request({
    url: "/credits/receive/phoneBill",
    method: "post",
    data,
  });
}

//领取链接验证
export function linkVsFnc(verification) {
  return request({
    url: `/link/${verification}`,
    method: "post",
  });
}

//根据id查询充值订单详情
export function InfoRechargeOrder(id) {
  return request({
    url: `/credits/phoneBillOrder/selectOne?id=${id}`,
    method: "get",
  });
}

////根据手机号查询领取记录
export function getReceiveList(query) {
  return request({
    url: `/system/receive/getPhoneBillInfoByPhoneNumber`,
    method: "get",
    params: query,
  });
}

//验证码获取
export function getPhoneCode(data) {
  return request({
    url: `/credits/receive/sendCaptchaMsg`,
    method: "post",
    data,
  });
}

//重新推送
export function againPushEffect(data) {
  return request({
    url: `/system/receive/againReceive`,
    method: "post",
    data,
  });
}

//重推记录

export function getAgainRe(query) {
  return request({
    url: `/system/receive/againList`,
    method: "get",
    params: query,
  });
}
//返费记录

export function recListApi(query) {
  return request({
    url: `/credits/receive/phoneBilllog`,
    method: "get",
    params: query,
  });
}

/**话费补领内部通道 */
export function indoor(data) {
  return request({
    url: `/system/receive/NbReceive`,
    method: "post",
    data,
  });
}

// 查领取信息
export function receiveInfoFnc(data) {
  return request({
    url: "/system/receive/NbReceiveverify",
    method: "post",
    data,
  });
}

/**话费手动状态更新 */
export function manual(data) {
  return request({
    url: `/system/receive/update`,
    method: "post",
    data,
  });
}
